package com.wat.aware;

import org.springframework.context.EmbeddedValueResolverAware;
import org.springframework.util.StringValueResolver;

public class CustomizeEmbeddedValueResolverAware implements EmbeddedValueResolverAware {

	@Override
	public void setEmbeddedValueResolver(StringValueResolver resolver) {

		String value = resolver.resolveStringValue("当前操作系统：${os.name},10*9+1=#{10*9+1}");
		System.out.println("value = " + value);
	}
}
